function ajaxLoading(url, param){
	$con = $("#ajaxContainer");
	param = param || {};
	myMask.show();
	$.get(url, param, function(data){
		$con.html(data);
		myMsg.hide();
	})
}

var myMsg = (function(){
	function show(msg){
		alert(msg);
	}
	function hide(){

	}

	return {
		show: show,
		hide: hide
	}
})();
var myMask = (function(){
	$con = $("#ajaxContainer");
	$loading = '<div class="myMask" id="_myMask"><img src="resource/images/loading.gif" /></div>';
	function show(){
		$con.append($loading);
		$("#_myMask").fadeIn();
	}
	function hide(){
		$("#_myMask").fadeOut();
		setTimeout(function(){$("#_myMask").remove();}, 1000);
	}
	return{
		show: show,
		hide: hide
	}
})();